#include "scoreitem.h"
#include "commondef.h"
#include <QPainter>

#define SCORE_W         80.0f

ScoreItem::ScoreItem():
    m_iscore            (0)
{
}

void ScoreItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{
    painter->drawText(QRectF(0.0f,0.0f,SCORE_W,H1),
                      Qt::AlignCenter,
                      QString("%1").arg(m_iscore));
}

QRectF ScoreItem::boundingRect() const
{
    return QRectF(0.0f,0.0f,SCORE_W,H1);
}
